
SET(__TempHeaders_qt4
  Tool.h)
SET(__TempSources
  Tool.cpp)

FOREACH(fileName ${__TempHeaders_qt4})
  STRING(REGEX REPLACE "(.*h$)" "${CMAKE_CURRENT_SOURCE_DIR}/\\1" pro ${fileName})
  LIST(APPEND __Headers_qt4 ${pro})
ENDFOREACH(fileName)

FOREACH(fileName ${__TempSources})
  STRING(REGEX REPLACE "(.*cpp$)" "${CMAKE_CURRENT_SOURCE_DIR}/\\1" pro ${fileName})
  LIST(APPEND __Sources ${pro})
ENDFOREACH(fileName)

# Can use not QT4_WRAP_CPP with out  ADD_LIBARARY.... fussy?? 
#QT4_WRAP_CPP(__Sources_moc ${__Headers_qt4})
SET(ToolHeaders ${__Headers_qt4} PARENT_SCOPE)
SET(ToolHeaders_qt4 ${__Headers_qt4} PARENT_SCOPE)
SET(ToolSources ${__Sources} PARENT_SCOPE)